package com.lesales.dao.impl;

import java.io.Serializable;
import java.util.List;

import org.springframework.stereotype.Repository;

import com.lesales.dao.interfaces.IUserRoleDao;
import com.lesales.model.UserRole;

@Repository
public class UserRoleDaoImpl extends BaseDaoImpl<UserRole, Serializable> implements IUserRoleDao {

	private List<UserRole> roleIdlists;

	@Override
	public List<UserRole> findRoleIdByUserId(int userId) {
		String hql = "FROM UserRole userRole WHERE userRole.userId=" + userId;
		roleIdlists = queryList(hql);
		return roleIdlists;
	}

}
